using System;
using System.Data;
using System.Collections;
using istIUniDB;

namespace Shraga.BLL
{
	[DBFunctions("Shraga_Cycle.Get_Cycle", "Shraga_Cycle.Get_Cycle_Date")]
	public class Cycle : DBObject
	{
		#region Properties
		
		public int		 CycleId			{ get { return base.PrimaryKey; } }		
		public String    CycleName			{ get { return base.GetStringData("CYCLE_NAME"); } }		
		public String    Description		{ get { return base.GetStringData("CYCLE_DESC"); } }		
		public bool		 IsActive			{ get { return base.GetBoolData("IS_ACTIVE"); } }		
		public DateTime  StartDate			{ get { return base.GetDateData("START_DATE"); } }		
		public DateTime  EndDate			{ get { return base.GetDateData("END_DATE"); } }		
		public new DateTime  LastUpdate { get { return base.LastUpdate; } }
				
		#endregion

		#region Constructors

		/// <summary>
		/// Loads a Cycle.
		/// </summary>
		/// <param name="CycleId"></param>
		public Cycle(int CycleId) 
		: base(CycleId)
		{}

		/// <summary>
		/// Creates a new cycle
		/// </summary>
		/// <param name="CycleId"></param>
		public Cycle(String Name, String Description, DateTime StartDate, DateTime EndDate) {}

		#endregion

		#region Cycle Methods

		/// <summary>
		/// Sets the cycle as not active
		/// </summary>
		public void DeActivate() {}

		#endregion
	}
}
